package com.dudu.service;

import java.io.IOException;

/**
 * 短信service
 * @author gaoxs
 *
 */
public interface ISmsCodeService {
	/**
	 * 验证短信码是否正确
	 * @param phoneNum
	 * @param code
	 * @return
	 */
	public  boolean checkCode(String phoneNum, String code);
	/**
	 * 发验证码
	 * @param phoneNum
	 * @return
	 */
	public  String sendCode(String phoneNum);
	/**
	 * 发短信
	 * @param phoneNbr
	 * @param smsContent
	 * @return
	 */
	public  String sendSms(String phoneNbr, String smsContent) throws Throwable, IOException;
}
